package com.cema.manage.framework.web.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.cema.manage.project.manage.proCategory.domain.ProCategory;
import com.cema.manage.project.manage.proCategory.service.IProCategoryService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Administrator
 */
@Component
public class CategoryController {
    @Resource
    private IProCategoryService proCategoryService;

    /**
     * 代理
     *
     * @return 参数键值
     */
    public List<ProCategory> selectCategory() {
        EntityWrapper<ProCategory> entityWrapper = new EntityWrapper<>();
        entityWrapper.orderBy("pc_sort", true);
        return proCategoryService.selectList(entityWrapper);
    }
}
